<template>
	<view>
		<view class="demo-warter radius16 mar10 pad16 bg-white">
			<navigator :url="`/pages/main/goods/detail?id=${goods.id}`">
				<sb-img w='300' shadow :src="goods.cover" />
				<view class="marv10 u-line-3">
					{{ goods.name }}
				</view>
				<sb-price-text class="padv5" :price="goods.price" />
			</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			goods: {
				type: Object,
				default: {},
			},
		},
	};
</script>
